﻿
using CRL.Core.ApiProxy;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsulTest
{
    class Program
    {
        static void Main(string[] args)
        {

        label1:

            var client = CRL.Core.ApiProxy.Extensions.GetClient<platformMain>();
            var result = client.Login("1111","111");
            Console.WriteLine(result);
            Console.ReadLine();

            goto label1;
        }
    }

    [Service(HostUrl = "http://127.0.0.1:3400")]
    public interface platformMain
    {
        [Method(Path = "/platformMain/account/login", Method = HttpMethod.POST)]
        string Login(string name,string password);
    }
}
